<script lang="ts" setup>
  import Button from '@sscd/button';
  import Space from '@sscd/space';
  import Message from '@sscd/message';
  const success = () => Message.success('This is a success message');
  const error = () => Message.error('This is an error message');
  const warning = () => Message.warning('This is a warning message');
</script>

<template>
  <div class="demo">
    <div class="demo-title">其他提示类型</div>
    <div class="demo-content">
      <Space>
        <Button @click="success">Success</Button>
        <Button @click="error">Error</Button>
        <Button @click="warning">Warning</Button>
      </Space>
    </div>
  </div>
</template>
